#include <drogon/drogon.h>
#include "drogon/nosql/RedisClient.h"
#include "hiredis/hiredis.h"
#include <stdio.h>
#include <stdlib.h>
#include <stddef.h>
#include <stdarg.h>
#include <string.h>
#include <assert.h>
#include "utils/RedisSingleton.h"

int main() {





    //Set HTTP listener address and port
    drogon::app().addListener("0.0.0.0", 80);
//    drogon::app().createRedisClient("39.102.96.57",6379,"default","qhlk@2017",1, false,NULL,0);
    //Load config file
    //drogon::app().loadConfigFile("../config.json");
    //Run HTTP framework,the method will block in the internal event loop

    drogon::app().run();


    return 0;
}
